﻿Public Class TestForm

    Private Sub Device2SerialBridge1_PortOpenStatus(ByVal Status As Boolean)
        If Status = True Then
            Led1.State = UCBase.Led.LedState.Led_On
        Else
            Led1.State = UCBase.Led.LedState.Led_Off
        End If
    End Sub

    Private Sub PortSwitch1_PortRequired(ByVal RequireStatus As Boolean)
        If RequireStatus = True Then
            Led2.State = UCBase.Led.LedState.Led_On
        Else
            Led2.State = UCBase.Led.LedState.Led_Off
        End If
    End Sub

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
        Dim x As New UCSHardwareTester.Form1
        x.Show()
    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
    End Sub

    Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
    End Sub

    Private Sub Button5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button5.Click
    End Sub

    Private Sub Button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button6.Click
    End Sub

    Private Sub TestForm_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Timer1.Enabled = True
    End Sub

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Dim D As Date = My.Computer.Clock.GmtTime

        Label1.Text = Format(D, "yyyyMMdd_HHmmss_fff")

    End Sub
End Class